// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: VertShader.vsh ********

// File data
static const char _VertShader_vsh[] = 
	"attribute highp vec3  inVertex;\r\n"
	"\r\n"
	"uniform highp mat4  ModelViewMatrix;\r\n"
	"uniform highp mat4  MVPMatrix;\r\n"
	"uniform highp vec3  EyePosition;\t\t// Eye (aka Camera) positon in model-space\r\n"
	"uniform mediump vec2 BumpTranslation0;\r\n"
	"uniform mediump vec2 BumpScale0;\r\n"
	"uniform mediump vec2 BumpTranslation1;\r\n"
	"uniform mediump vec2 BumpScale1;\r\n"
	"\r\n"
	"uniform highp float PerturbScale;\r\n"
	" \r\n"
	"varying mediump vec2 BumpCoord0;\r\n"
	"varying mediump vec2 BumpCoord1;\r\n"
	"varying mediump vec3\tWaterToEye;\r\n"
	"varying mediump float\tWaterToEyeLength;\r\n"
	"\r\n"
	"void main()\r\n"
	"{\r\n"
	"\t// Convert each vertex into projection-space and output the value\r\n"
	"\thighp vec4 vInVertex = vec4(inVertex, 1.0);\r\n"
	"\tgl_Position = MVPMatrix * vInVertex;\r\n"
	"\r\n"
	"\t// The texture coordinate is calculated this way to reduce the number of attributes needed\r\n"
	"\tmediump vec2 vTexCoord = inVertex.xz;\r\n"
	"\r\n"
	"\t// Scale and translate texture coordinates used to sample the normal map - section 2.2 of white paper\r\n"
	"\tBumpCoord0 = vTexCoord.xy * BumpScale0;\r\n"
	"\tBumpCoord0 += BumpTranslation0;\r\n"
	"\t\r\n"
	"\tBumpCoord1 = vTexCoord.xy * BumpScale1;\r\n"
	"\tBumpCoord1 += BumpTranslation1;\r\n"
	"\t\r\n"
	"\t/* \t\r\n"
	"\t\tThe water to eye vector is used to calculate the Fresnel term\r\n"
	"\t\tand to fade out perturbations based on distance from the viewer\r\n"
	"\t*/\r\n"
	"\tWaterToEye = EyePosition - inVertex;\r\n"
	"\tWaterToEyeLength = length(WaterToEye);\r\n"
	"}\r\n";

// Register VertShader.vsh in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_VertShader_vsh("VertShader.vsh", _VertShader_vsh, 1311);

// ******** End: VertShader.vsh ********

// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: VertShader.vsc ********

// File data
A32BIT _VertShader_vsc[] = {
0x10fab438,0x2af41692,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x71040000,0x0,0x4000000,0x0,0x79000000,0x2020203,0x0,0x2020000,0x202,0x0,0x68020000,0x55535020,0x20,0x25c,0x1,0x1,0x0,0x204,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x122000a,0xffff,0x20003,0x0,0x0,0x1b,0x0,0x0,0x0,0x0,0xfffc,0x0,0x0,0x0,0xffff0003,0xffffffff,0x170000,0x800003,0x140002,0x0,0x150002,0x100000,0x160002,0x1,0x170002,0x100001,0x180002,0x2,0x190002,0x100002,0x1a0002,
0x3,0x1b0002,0x100003,0x10001,0x4,0x20001,0x5,0x30001,0x6,0x40001,0x7,0x50001,0x8,0x60001,0x9,0x70001,0xa,0x80001,0xb,0x90001,0xc,0xa0001,0xd,0xb0001,0xe,0xc0001,0xf,0xd0001,0x10,0xe0001,0x11,0xf0001,0x12,0x100001,0x13,0x110001,0x14,0x120001,0x15,0x130001,0x16,0x7,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x50000,0x80010002,0x80018001,0x8001,0x0,0x0,0x0,0x0,0xf0e02a56,0xc01005,0xf100aad7,0xc01005,0xf1202c5a,0xc01005,0xf140acdb,0xc01005,
0x70801a0e,0xa22085,0x2,0x2000e,0x80018001,0x80018002,0x0,0x0,0x4,0x0,0x0,0x10000,0x10001,0x10000,0x10001,0x1010201,0xfa100000,0x60000200,0x28a11000,0x50000285,0x801401,0x50004300,0x801001,0x40000000,0x8801201,0x41600000,0x8801001,0xf0000892,0x38ab0605,0xf0004a96,0x38820605,0xf0008c9a,0x38820605,0x701f1a1d,0xa21001,0xf0000994,0x38ab0606,0xf0004b98,0x38820606,0xf0008d9c,0x38820606,0x705f1a1f,0xa21001,0x6,0x803f1c00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc000000,0x65566e69,0x78657472,0x4000000,0x304,0x1000001,0x40000,0x67000007,0x6f505f6c,0x69746973,0x6e6f,0x3050501,0x10000,0x100,0xf0004,0x50564d00,0x7274614d,0x7869,0x3031600,0x10000,0x4000100,0xffff10,0x6d754200,0x6f6f4370,0x306472,0x5030000,0x1000002,0x10000,0x3000204,0x75420000,0x6353706d,0x30656c61,0x3000000,0x203,0x1000001,0x21400,0x42000003,0x54706d75,0x736e6172,0x6974616c,0x306e6f,0x3030000,0x1000002,0x10000,0x3000216,0x75420000,0x6f43706d,0x3164726f,0x3000000,0x205,0x1000001,0x20800,0x42000003,0x53706d75,0x656c6163,0x31,
0x20303,0x100,0x2180001,0x300,0x706d7542,0x6e617254,0x74616c73,0x316e6f69,0x3000000,0x203,0x1000001,0x21a00,0x45000003,0x6f506579,0x69746973,0x6e6f,0x3030400,0x10000,0x1000100,0x70003,0x74615700,0x6f547265,0x657945,0x5040000,0x1000002,0x10000,0x7000300,0x61570000,0x54726574,0x6579456f,0x676e654c,0x6874,0x2050200,0x10000,0xc000100,0x10001,0x0,
};

// Register VertShader.vsc in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_VertShader_vsc("VertShader.vsc", _VertShader_vsc, 1169);

// ******** End: VertShader.vsc ********

